package com.qz.c3;

public class product {
    String model;
    double size;
    double price;
    String disposition;//配置
    int count;         //库存
    double total;      //总价

    public product(String model, double size, double price, String disposition) {
        this.model = model;
        this.size = size;
        this.price = price;
        this.disposition = disposition;
        this.count = 0;
        this.total = 0;
    }

    public void setCount(int count) {
        this.count = count;
        this.total = this.price * count;
    }
    public double getTotal() {
        return total;
    }
}
